import Layout from '@/layout/index.vue'

// 公共路由集合  404等
const constRoutes = [
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import('@/views/Home'),
        meta: { title: '首页', icon: 'dashboard' },
      },
    ],
  },
  {
    path: '/about',
    name: 'About',
    meta: {
      title: '关于',
      icon: 'example',
    },
    component: Layout,
    children: [
      {
        path: '',
        name: 'About',
        component: () => import('../views/About.vue'),
        meta: { title: 'About', icon: 'form' },
      },
      {
        path: '/list/about',
        name: 'List',
        meta: {
          title: 'List',
          icon: 'link',
        },
        component: () => import('../views/List.vue'),
      },
    ],
  },
]

export default constRoutes
